package cn.csc.module.order.controller.admin.order.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;
import java.time.LocalDateTime;

@ApiModel("管理后台 - 订单子项信息更新发货 Request VO")
@Data
@ToString(callSuper = true)
public class OrderUpdateDeliveryReqVO {

    @ApiModelProperty(value = "订单项ID", required = true)
    @NotNull(message = "订单项ID不能为空")
    private BigInteger id;
    @ApiModelProperty(value = "订单状态 0未付款,1已付款,2已发货,3已签收,-1退货申请,-2退货中,-3已退货,-4取消交易 -5撤销申请")
    private Integer orderStatus;
    @ApiModelProperty(value = "发货附件")
    private String deliveryFile;
    @ApiModelProperty(value = "配送类型", required = true)
    @NotNull(message = "单个orderItem的配送类型1.快递物流(默认）,2.送货上门,3.自提")
    private Integer deliveryType;
    private LocalDateTime deliveryTime;

    private LocalDateTime finallyTime;
}
